package com.slmxz.tms.document.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import com.baomidou.mybatisplus.annotation.TableName;
import com.slmxz.tms.common.base.BaseEntity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 结算币种汇率实体对象
 * @author sunyao
 * @Date 2024-11-10
 */
@Getter
@Setter
@TableName("tbl_settle_currency")
public class SettleCurrency extends BaseEntity {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 待转换币种
     */
    private String fromCurrency;
    /**
     * 转换后币种
     */
    private String toCurrency;
    /**
     * 汇率
     */
    private BigDecimal exchangeRate;
    /**
     * 汇率时间
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime exchangeTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 逻辑删除标识(0-未删除 1-已删除)
     */
    private Integer isDeleted;
}
